package superbird;

import java.io.IOException;
import javax.swing.JFrame;

public class Run_JFrame {
	public static void main(String[] args) throws IOException, InterruptedException {

		//创建窗体对象
		JFrame frame = new JFrame();
		//设置窗体大小
		frame.setSize(440, 640);

		//创建面板对象
		BirdGameJpanel jpanel = new BirdGameJpanel();

		//将面板添加到窗体中
		frame.add(jpanel);

		//窗体居中
		frame.setLocationRelativeTo(null);
		//将窗体显示
		frame.setVisible(true);
		//关闭窗体的同时，也将程序结束掉
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		//鼠标监听
		jpanel.action();

	}


}
